﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RRHH.Entities;
using RRHH.DataAccess;


namespace RRHH.BusinessLogic
{
    public class BLContrato
    {

        DAOContrato _DAOContrato = null;

        public Boolean Update(BEContrato _BEContrato)
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.Update(_BEContrato);
        }

        public BEContrato Create(BEContrato _BEContrato)
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.Create(_BEContrato);
        }

        public BEContrato Get(int contratoID)
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.Get(contratoID);
        }

        public bool Delete(int contratoID)
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.Delete(contratoID);
        }

        public List<BEContrato> List(int personalID)
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.List(personalID);
        }


        public List<BEContrato> GestContratosVencidos()
        {
            _DAOContrato = new DAOContrato();
            return _DAOContrato.GestContratosVencidos();
        }
    }
}
